< previous page page_426 next page >

Page 426
(table continued from previous page)
Value to SetDescriptionConstant Name
8Sizing (NW, SE)vbSizeNWSE
9Sizing (W, E)vbSizeWE
10Up arrowvbUpArrow
11HourglassvbHourglass
12No dropvbNoDrop
13Arrow and hourglassvbArrowHourglass
14Arrow and question markvbArrowQuestion
15Size allvbSizeAll
99Custom icon specified by the MouseIcon property VbCustom

The last cursor type, 99, is used in combination with the MouseIcon property. If you set this type, you must have the MouseIcon property filled in with the name of a valid cursor file or an icon (ICO) file.
The Clipboard Object
One of the many benefits of the Windows environment is the ability to move text, graphics, and other objects from one application to another. This is normally accomplished via a mechanism called the Clipboard. The Clipboard is an area of memory thats a temporary holding area for any valid Windows object.
Normally, you move items from your application to the Clipboard by pressing the Ctrl+C key combination. You can then move to another application, or even stay in the same one, and press Ctrl+V to retrieve that information from the Clipboard.
Visual Basic also takes advantage of this behavior. From any text box, you can highlight an area of text you have typed in and use these key combinations to copy and paste information. For example, you can highlight any part of a name in one text box, press Ctrl+C, and move to another text box and press Ctrl+V to put the text there. This functionality is built into VB and requires no programming on your part (see Figure 21.5).
Examples Filename: ObjClip.frm

 
< previous page page_426 next page >

If you like this book, buy it!